# 
$Dir = 'C:\Program Files\1cv8\common\1cestart.exe'
cd ..\
$Current_path = Get-Location
1..16 | % {

    $base_name = "task-{0:D2}" -f $_;

    $newFolder = "$Current_path\task-{0:D2}" -f $_;
    $newFolderNotes = "$Current_path\notes\task-{0:D2}" -f $_;
    $newNotesFile = "$Current_path\notes\task-{0:D2}\task-{0:D2}.md" -f $_;

    New-Item -Path $newFolder -ItemType Directory -Force;
    New-Item -Path $newFolderNotes -ItemType Directory -Force;
    New-Item -Path $newNotesFile -Force;

    $cmd_str = "CREATEINFOBASE File=$newFolder /AddInList $base_name /UseTemplate $newFolder\dt-carcas\new_carcass_8_3_17_1496.dt"
    Start-Process -FilePath $Dir -ArgumentList $cmd_str -Wait
}